package com.autonavi.yunda.yunji.configuration;

import org.springframework.context.annotation.Configuration;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.http.converter.xml.MappingJackson2XmlHttpMessageConverter;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import java.util.List;

/**
 * 作用未知
 * @author cizhong.wcs
 * @date 2022/3/1 5:12 下午
 */
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Override
    public void configureMessageConverters(List<HttpMessageConverter<?>> converters) {
        //remove the xml convert
        converters.removeIf(convert -> convert instanceof MappingJackson2XmlHttpMessageConverter);
    }
}
